package com.lvtongka.app.fragment.pay.bean

import java.io.Serializable

data class ScanQrCodeRequest(
    val shop_static_qr_code: String,
    val txn_type: String = "15"
)

data class ScanQrCodeResponse(
    val code: Int,
    val msg: String,
    val data: ScanQrCodeData
)

data class ScanQrCodeData(
    val term_id: String,
    val shop_id: String,
    val shop_name: String,
    val logo_img: String
) : Serializable

data class OpenScanPayRequest(
    val password: String, // 支付密码，开启功能时，需要支付密码，关闭功能，不需要支付密码
    val switch: String = "1", // 1-开启，0-关闭
    val function: String = "1", // 1-扫码支付，2-条码支付，3-免密支付
    val txn_type: String = "11"
)

data class ScanDynamicsQrCodeRequest(
    val order_id: String,
    val order_type: String = "5",
    val txn_type: String = "23"
)

data class ScanDynamicsQrCodeResponse(
    val code: Int,
    val msg: String,
    val data: ScanDynamicsQrCodeData
)

data class ScanDynamicsQrCodeData(
    val order_type: String,
    val order_id: String,
    val note: String,
    val expire_flag: String,
    val member_id: String,
    val amt: Int,
    val term_id: String,
    val shop_name: String,
    val logo_img: String,
    val pay_result_code: String,
    val pay_result_msg: String,
    val verify_password_flag: String?,
    val verify_sms_flag: String
) : Serializable